package com.xxljob.demo.core.route.stragety;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.biz.model.TriggerParam;
import com.xxljob.demo.core.route.ExecutorRouter;

import java.util.List;

/**
 * @Author：YH
 * @Description：
 * @Date:Created in 2022/5/21 16:34
 */
public class ExecutorRouteLast extends ExecutorRouter {
    @Override
    public ReturnT<String> route(TriggerParam triggerParam, List<String> addressList) {
        return new ReturnT<>(addressList.get(addressList.size() - 1));
    }
}
